//
//  LDBossInfo.swift
//  DingDongZP
//
//  Created by 三秒文化 on 16/6/13.
//  Copyright © 2016年 51ledian.com. All rights reserved.
//

import UIKit

class LDBossInfo: NSObject {

    
    var currentjob_id:String?
    var userid:Int?
    
    //入口
    class var sharedInstance:LDBossInfo {
        struct Staics {
            static let instance = LDBossInfo()
        }
        return Staics.instance
    }
    
    
    private override init() {
        super.init()
        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(getNotiCurrentJobChange), name: NotiEmployerSetCurrentJob, object: nil)
    }
    
    deinit {
        
        NSNotificationCenter.defaultCenter().removeObserver(self)
    }
    
    func getNotiCurrentJobChange(noti:NSNotification) {
        
        if noti.userInfo != nil {
            
            let jobid = noti.userInfo!["current_jobid"] as? String ?? ""
            currentjob_id = jobid
        }
        
        
    }
}
